loses their mind

lose one's mind (third-person singular simple present loses one's mind, present participle losing one's mind, simple past and past participle lost one's mind)
(idiomatic) To become frustrated, angry.
(idiomatic) To become crazy, insane.